﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Jim.K3Cloud;

/// <summary>
/// 获取报表数据
/// </summary>
[Sdk("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.GetSysReportData", "获取报表数据")]
public class K3CloudGetSysReportDataRequest : ISdkRequest<K3CloudGetSysReportDataResponse>,IK3CloudCustomRequest
{
    public string FormId { get; set; }
    public string FieldKeys { get; set; }
    public string SchemeId { get; set; }
    public int StartRow { get; set; } = 0;
    public int Limit { get; set; } = 2000;
    public bool IsVerifyBaseDataField { get; set; } = true;
    public object Model { get; set; }

    public object QueryParams()
    {
        return new
        {
            FormId= FormId,
            Data = new {
                FieldKeys = FieldKeys,
                SchemeId = SchemeId,
                StartRow = StartRow,
                Limit = Limit,
                IsVerifyBaseDataField = IsVerifyBaseDataField,
                Model = Model,
            }
        };
    }

    public void Validate()
    {
    }
}

public class K3CloudGetSysReportDataResponse:SdkResponse<K3CloudGetSysReportResponseData>
{ 

}

public class K3CloudGetSysReportResponseData
{
    public int RowCount { get; set; }
    public List<List<Object>> Rows { get; set; }
}
